//
//  ByInfomationChildSuperVC.m
//  jmsfhz_ios
//
//  Created by pro on 16/8/3.
//  Copyright © 2016年 pro. All rights reserved.
//

#import "ByInfomationChildSuperVC.h"

@interface ByInfomationChildSuperVC ()

@end

@implementation ByInfomationChildSuperVC


- (void)viewDidLoad {
    [super viewDidLoad];
}

- (void)refreshTable {
    
}
- (ByCoreViewCarousel *)carouselView {
    if (!_carouselView) {
        _carouselView = [[ByCoreViewCarousel alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_WIDTH / 2) timerDuration:2];
    }
    return _carouselView;
}

/** 获取轮播图 */
- (void)getCarouselImages {
    ByNetParamsModel *params = [[ByNetParamsModel alloc] init];
    params.position = [NSString stringWithFormat:@"%i", 6045];
    params.page_num = @"1";
    params.page_size = @"5";
    
    [ByNetImageApi imageCarouselGet:params success:^(ByNetBaseResult *result) {
        /** 设置轮播 */
        self.carouselView.models = result.data;
    } failure:^(ByNetBaseResult *result) {
        
    }];
}
@end
